package com.uzai.common.dto.user;

import com.uzai.common.enums.PlatformTypeEnum;

import java.util.Objects;

/**
 * @author JiangHam
 * @date 2024-04-22 14:24
 */
public class OrderSubsidyRule {
    /**
     * 平台
     * @see PlatformTypeEnum
     */
    private int platform;
    /**
     * 补贴金额
     */
    private double subsidyAmount;
    /**
     * 状态 0未补贴，1已补贴
     */
    private int status;
    /**
     * 结算时间（天）
     */
    private int settleTime;
    public OrderSubsidyRule(){}
    public OrderSubsidyRule(int platform) {
        this.platform = platform;
    }

    public int getPlatform() {
        return platform;
    }

    public void setPlatform(int platform) {
        this.platform = platform;
    }

    public double getSubsidyAmount() {
        return subsidyAmount;
    }

    public void setSubsidyAmount(double subsidyAmount) {
        this.subsidyAmount = subsidyAmount;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getSettleTime() {
        return settleTime;
    }

    public void setSettleTime(int settleTime) {
        this.settleTime = settleTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderSubsidyRule that = (OrderSubsidyRule) o;
        return platform == that.platform;
    }

    @Override
    public int hashCode() {
        return Objects.hash(platform);
    }
}
